package com.study.blog.model.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class EmailSendDTO implements Serializable {

    /**
     * 用户邮箱
     */
    @NotNull(message = "邮箱不能为空")
    @ApiModelProperty(value = "用户邮箱", required = true, example = "123456@qq.com")
    private String email;

    /**
     * 邮件主题
     */
    @NotNull(message = "邮件主题不能为空")
    @ApiModelProperty(value = "邮件主题", required = true, example = "chenjiang")
    private String subject;

    /**
     * 邮件内容
     */
    @NotNull(message = "邮件内容不能为空")
    @ApiModelProperty(value = "邮件内容", required = true, example = "chenjiang")
    private String content;

}
